package com.education.welco.service.impl;

import com.education.welco.mapper.OrderPaperQuestionMapper;
import com.education.welco.pojo.OrderPaperQuestion;
import com.education.welco.service.OrderPaperQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 试卷试题关联表 服务层实现
 *
 * @author d
 * @date 2021-03-04 15:45:19
 */
@Service
public class OrderPaperQuestionServiceImpl implements OrderPaperQuestionService {

    @Autowired
    private OrderPaperQuestionMapper orderPaperQuestionMapper;

    //查询试卷试题关联表信息
    @Override
    public OrderPaperQuestion selectOrderPaperQuestionById(Integer paperId) {
        return orderPaperQuestionMapper.selectOrderPaperQuestionById(paperId);
    }

    // 查询试卷试题关联表列表
    @Override
    public List<OrderPaperQuestion> selectOrderPaperQuestionList(OrderPaperQuestion orderPaperQuestion) {
        return orderPaperQuestionMapper.selectOrderPaperQuestionList(orderPaperQuestion);
    }

    // 新增试卷试题关联表
    @Override
    public int insertOrderPaperQuestion(OrderPaperQuestion orderPaperQuestion) {
        return orderPaperQuestionMapper.insertOrderPaperQuestion(orderPaperQuestion);
    }

    //修改试卷试题关联表
    @Override
    public int updateOrderPaperQuestion(OrderPaperQuestion orderPaperQuestion) {
        return orderPaperQuestionMapper.updateOrderPaperQuestion(orderPaperQuestion);
    }

    //删除试卷试题关联表对象
    @Override
    public int deleteOrderPaperQuestionByIds(String[] ids) {
        return orderPaperQuestionMapper.deleteOrderPaperQuestionByIds(ids);
    }
}